<?php if ($models) : ?>
    <table class="table table-bordered table-striped">
        <thead>
    	<tr>
    	    <th>Тема</th>
    	    <th>Кратко</th>
    	    <th>Дата</th>
    	    <th>Операции</th>
    	</tr>
        </thead>
        <tbody>
	    <?php foreach ($models as $model) : ?>
		<tr>
		    <td><?php echo $model->getDbData('title'); ?></td>
		    <td><?php echo CTruncate::trunc($model->getDbData('content')); ?></td>
		    <td><?php echo date('d.m.Y H:i', strtotime($model->getDbData('add_date'))); ?></td>
		    <td>
			<a href="#" class="btn btn-mini"><i class="icon-edit"></i></a>
			<a href="<?php echo $this->createUrl('/admin/review/remove', array('id' => $model->getId())); ?>" class="btn btn-mini"><i class="icon-remove"></i></a>
		    </td>
		</tr>
	    <?php endforeach; ?>
        </tbody>
    </table>
<?php endif; ?>
<div class="taCenter pagination">
    <?php $this->widget('CLinkPager', array('pages' => $pager, 'cssFile' => false, 'header' => '', 'firstPageLabel' => 'Первая', 'nextPageLabel' => 'Следующая', 'prevPageLabel' => 'Предыдущая', 'lastPageLabel' => 'Последняя')); ?>
</div>